Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / Paper-Handling Messages


GXDoesPaperFit

QuickDraw GX sends the GXDoesPaperFit message to determine if a specific paper type is acceptable on the printing device that your driver supports. You can override
the GXDoesPaperFit message to set or modify the returned value. Your override of the GXDoesPaperFit message must match the following formal declaration:

OSErr MyDoesPaperFit (gxTrayIndex whichTray, gxPaperType paper,
                      Boolean *fits);
whichTray
The tray in which the paper is to be loaded.
paper
The paper type.
fits
On return, a Boolean value that is true if the paper can be used on the printer and false if not.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXDoesPaperFit message to limit the number of paper-type names that appear in the Paper pop-up menu in the Page Setup dialog box. You can override the GXDoesPaperFit message to notify QuickDraw GX that a certain paper type does not work in the specified paper tray on your device.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help